﻿using System.ComponentModel.Composition;
using System.Waf.Applications;
using System.Windows.Input;
using ImageClipTool.Applications.Views;

namespace ImageClipTool.Applications.ViewModels
{
    [Export]
    internal class ImageClipViewModel : ViewModel<IImageClipWindow>
    {
        [ImportingConstructor]
        public ImageClipViewModel(IImageClipWindow view)
            : base(view)
        {
            ORIGINAL_IMAGE_WIDTH = 1012;
            ORIGINAL_IMAGE_HEIGHT = 720;
        }

        public int ORIGINAL_IMAGE_WIDTH { get; set; } // 前台绑定，Image控件的宽高
        public int ORIGINAL_IMAGE_HEIGHT { get; set; }

        private ICommand cutImageCommand; // 裁剪图片
        public ICommand CutImageCommand
        {
            get { return cutImageCommand; }
            set { SetProperty(ref cutImageCommand, value); }
        }
        
    }
}
